<?php

namespace App\Kuafu\Banner\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class BannerCacheEnum extends BaseCodeEnum
{
    private const BANNER_CONFIG_ID = 'banner-config-id';

    /**
     * 横幅列表
     * @param int $bannerConfigId
     * @return string
     */
    public static function getBannerCacheById(int $bannerConfigId): string
    {
        return sprintf(self::BANNER_CONFIG_ID . ":%d", $bannerConfigId);
    }
}